package com.qindian.coupontest;

import com.qindian.model.CouponModel;
import com.qindian.model.ExchangeModel;
import com.qindian.model.ExchangedCouponModel;
import com.qindian.model.GoodsModel;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

/**
 * Author: Li
 * Date: 2018/4/28 0028
 * Description:
 */

public interface HttpService {
    @GET("{platform}")
    Observable<GoodsModel> getGoodsList(@Path(value="platform", encoded=true) String platform,@QueryMap Map<String,Object> map);

    @GET("{platform}")
    Observable<String> getGoodsList2(@Path(value="platform", encoded=true) String platform,@QueryMap Map<String,Object> map);

    @GET("exchange")
    Observable<ExchangeModel> exchangeCoupon(@QueryMap Map<String,Object> map);

    @GET("{detail}")
    Observable<CouponModel> getCoupon(@Path(value="detail", encoded=true) String detail, @QueryMap Map<String,Object> map);
    @GET("exchange/lists")
    Observable<ExchangedCouponModel> getExchangedCouponList(@QueryMap Map<String,Object> map);
}
